package io.renren.modules.dictionary.service;

import io.renren.modules.dictionary.entity.DictionaryCustomEntity;
import io.renren.modules.dictionary.entity.DictionaryEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-10-17 14:15:28
 */
public interface DictionaryService {

	int queryTypeId(Map<String, Object> map);
	
	DictionaryEntity queryObject(Integer dictionaryid);
	
	List<DictionaryEntity> queryList(Map<String, Object> map);

	List<DictionaryCustomEntity> queryListByTypeName(Map<String, Object> map);

	int queryByTypeNameTotal(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(DictionaryEntity dictionary);
	
	void update(DictionaryEntity dictionary);
	
	void delete(Integer dictionaryid);
	
	void deleteBatch(Integer[] dictionaryids);

	List<DictionaryEntity> searchByTypename(String typename);

	void deleteBatchByDicTypeId(Integer dictypeid);

	DictionaryEntity queryObjectByDateTypeName(String dateTypeName);

	void updateByDataTypeName(DictionaryEntity dictionaryEntity);
}
